import type { CapacitorConfig } from '@capacitor/cli';

// eslint-disable-next-line node/prefer-global/process
const isProduction = process.env.NODE_ENV === 'production';

const productionUrl = 'https://g9.game';
const stagingUrl = 'https://img.g9aaa.com';
const config: CapacitorConfig = {
  appId: 'com.g9game.app',
  appName: 'g9Game',
  webDir: 'dist',
  server: {
    url: isProduction ? productionUrl : stagingUrl,
  },
  plugins: {
    SplashScreen: {
      launchShowDuration: 0,
    },
  },
};

export default config;
